package nl.unimaas.games.tron;

import java.io.FileNotFoundException;

import nl.unimaas.games.tron.engine.Board;
import nl.unimaas.games.tron.engine.Evaluator;
import nl.unimaas.games.tron.engine.Game;
import nl.unimaas.games.tron.experiment.GameAnalyzer;

public final class TronTest {
	public static void main(String[] args) {
		Board board = null;
		try {
			board = Board.fromFile("maps/box.txt");
			for (int i = 0; i < 2; i++) {
				int start = board.getStartPositions(2)[i];
				board.placePlayerWall(Board.posToX(start), Board.posToY(start), i);
			}
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		//board.print();
		long start = System.currentTimeMillis();
		double count = 100000;
		/*
		Evaluator.SpaceEvaluator spacer = new Evaluator.SpaceEvaluator();
		start = System.currentTimeMillis();
		count = 100000;
		for (int i = 0; i < count; i++) {
			spacer.compute(board, 0);
		}
		end = System.currentTimeMillis();
		System.out.println("SPACE Elapsed: " + (end - start) + " iter: " + ((end - start) / count ));
		*/
	}
}
